package ZuoYe18;

public class HomeWork3 {

	public static void main(String[] args) {
		char[] array = {'a','b','c','d','e','f','g','g','i','g'};
		char o = 'g';
		int count = 0;
		/*for (int i = 0 ; i < array.length ; i++){
			if (array[i] == o ){
				count++;*/
			
			for( char c : array) {
				if( c == o)
					count++;
			}
			System.out.println(count);
		}
	}


